package com.cpi.cornpp.transports.comparator;

import java.util.Comparator;

import com.cpi.cornpp.transports.view.CostElementView;

public class CostElementAddedComparator implements Comparator {

	public int compare(Object objCostElementView, Object objCostElementViewToCompare) {
		CostElementView costElementView = null;
		CostElementView costElementViewToCompare = null;
		int compareInt = 0;
		try{
			costElementView = (CostElementView)objCostElementView;
			costElementViewToCompare = (CostElementView)objCostElementViewToCompare;
			compareInt = costElementView.getChargeTypeShortName().compareToIgnoreCase(costElementViewToCompare.getChargeTypeShortName());
		}finally{
			
		}
		return compareInt;
	}

}
